package com.coldchain.auth.module.client.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author fangliai
 * @since 2018-08-28
 */
@TableName("gateway_route")
public class Route implements Serializable {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 映射路劲
     */
	private String path;
    /**
     * 映射服务
     */
    @TableField(value ="service_id" )
	private String serviceId;
    /**
     * 映射外连接
     */
	private String url;
    /**
     * 是否重试
     */
	private Integer retryable;
    /**
     * 是否启用
     */
	private Integer enabled;
    /**
     * 是否忽略前缀
     */
    @TableField("strip_prefix")
	private Integer stripPrefix;

    /**
     * 是否开启认证
     */
    private Integer auth;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getServiceId() {
		return serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getRetryable() {
		return retryable;
	}

	public void setRetryable(Integer retryable) {
		this.retryable = retryable;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Integer getStripPrefix() {
		return stripPrefix;
	}

	public void setStripPrefix(Integer stripPrefix) {
		this.stripPrefix = stripPrefix;
	}

    public Integer getAuth() {
        return auth;
    }

    public void setAuth(Integer auth) {
        this.auth = auth;
    }
}
